﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Playables;

public class AnimAdapter : PlayableBehaviour
{
    private AnimBehaviour animBehaviour;

    public void Init(AnimBehaviour animBehaviour)
    {
        this.animBehaviour = animBehaviour;
    }

    public void Enable()
    {
        animBehaviour.Enable();
    }

    public override void PrepareFrame(Playable playable, FrameData info)
    {
        base.PrepareFrame(playable, info);
        animBehaviour.Execute(playable,info);

    }
}

